package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Speciality;

import java.util.List;

@DBMapper
public interface SpecialityMapper {
    int deleteByPrimaryKey(Integer specialityId);

    int insert(Speciality record);

    int insertSelective(Speciality record);

    Speciality selectByPrimaryKey(Integer specialityId);

    int updateByPrimaryKeySelective(Speciality record);

    int updateByPrimaryKey(Speciality record);

    /**
     * 根据条件查询列表
     * @param speciality
     * @return
     */
    List<Speciality> selectListByCondition(Speciality speciality);


    /**
     * 根据条件查询活动以及活动关联的商品
     * @param speciality
     * @return
     */
    List<Speciality> selectListWithChildrenByCondition(Speciality speciality);
}